<?php   
class Megadrupal_Slider_Block_Index extends Mage_Core_Block_Template{   
    const MDSLIDER_TAGS = 'MEGA_DRUPAL_SLIDER';
    const MDSLIDER_KEY = 'MEGA_DRUPAL_SLIDER_ID';
    protected $_sliderid;
    
//    protected function _construct() {
//        $this->_sliderid = 1; //Mage::helper('dealer')->getMascotDealer('check');
//        
//        $this->addData(array(
//            'cache_lifetime' => 860000,
//            'cache_tags' => array(self::MDSLIDER_TAGS),
//            'cache_key' => self::MEGA_DRUPAL_SLIDER_ID.'_' . $this->_sliderid
//        ));
//        return parent::_construct();
//    }
    
    function getMDSliderById($slid) {
        return Mage::getModel("slider/slider")->getMDSlider($slid);  
    }

}